FracDiv
FracDiv Divide one 32-bit quantity by an other
#include <FixMath.h> Toolbox Utilities
Fract FracDiv(opA, opB );
Fract opA ; dividend
Fract opB ; divisor
returns 32-bit quotient (Fract, long, or Fixed)
FracDiv returns the quotient of fracA / fracB.
opA and...
opB are two 32-bit values, formatted as any of the data types long,
Fixed, or Fract.
Returns: a 32-bit value, whose format depends on that of the input
parameters:
opA opB returned
Fract / Fract = Fract
long / long = Fract
Fixed / Fixed = Fract
long / Fract = long
Fixed / Fract = Fixed

Notes: Division by 0 yields 0x7FFFFFFF if opA is positive or 0 and 0x80000000
if opA is negative. Division overflow yields 0x7FFFFFFF for positive
results and 0x8000000 for negative results.